package com.hrzyit.whistle.comm.data.api

import com.hrzyit.base.data.protocol.BaseResp
import com.hrzyit.whistle.comm.data.bean.ContactDeptUserVo
import com.hrzyit.whistle.comm.data.bean.ContactEntity
import com.hrzyit.whistle.comm.data.bean.DepartmentEntity
import com.hrzyit.whistle.comm.data.protocol.ContactByDeptUserReq
import com.hrzyit.whistle.comm.data.protocol.ContactByUserDetailReq
import com.hrzyit.whistle.comm.data.protocol.ContactListSearchListReq
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * 通讯录管理相关操作 API 接口
 * @author YangWei
 * @date 2019/4/4
 */
interface ContactCenterApi {

    /**
     * 通讯录-单位列表
     */
    @POST(value = "contact/selectContactDeptList")
    fun selectContactDeptList(@Body req: ContactListSearchListReq): Observable<BaseResp<MutableList<DepartmentEntity>>>

    /**
     * 通讯录-获取单位人员列表
     */
    @POST(value = "contact/selectContactsList")
    fun selectContactsList(@Body req: ContactByDeptUserReq): Observable<BaseResp<MutableList<ContactEntity>>>

    /**
     * 通讯录-获取人员信息
     */
    @POST(value = "contact/getContactUserDetail")
    fun getContactUserDetail(@Body req: ContactByUserDetailReq): Observable<BaseResp<ContactEntity>>
}